package com.talent.web.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.talent.web.model.dto.AllocationRoleDto;
import com.talent.web.model.dto.SysUserDto;
import com.talent.web.model.entity.SysUser;
import com.talent.web.model.query.UserQuery;
import com.talent.web.model.vo.SysUserVo;

import java.util.List;
/**
 * @ClassName：ResponseEnum
 * @Author: hszhou
 * @Date: 2024/10/21 13:35
 * @Description: 用户接口
 */
public interface ISysUserService extends IService<SysUser> {



    SysUser selectUserByUsername(String username);

    SysUser selectUserByMobile(String mobile);

    IPage<SysUserVo> page(int page, int pageSize, UserQuery query);

    void addSysUser(SysUserDto dto);

    void deleteById(String id);

    void updateUser(SysUserDto dto);

    void upgradePassword(String username, String newPassword);
    /**
     * 获取用户的权限
     * @param userId
     * @return
     */
    List<String> getPermission(Long userId);

    void allocationRole(AllocationRoleDto dto);


    SysUserVo detail(Long id);
}
